Moves to the previous activity in the session. For UnstoredLearningSession or views of sessions that are not active, this is determined by an in order traversal of the activity tree and navigation rules as defined in the package manifest are not enforced. For a session that represents an active attempt, this is determined through sequencing rules of the package.
Parent Type: LearningSession
Namespace: Microsoft.LearningComponents
Assembly: Microsoft.LearningComponents.dll
| C# |
|
public virtual void MoveToPrevious () |
| Exception type | Condition |
| InvalidOperationException | Thrown if there is no current activity in the session or if the session is not in a state that allows moving to the previous activity. |
| SequencingException | Thrown if a new activity could not be identified for delivery. |
This method requires a current activity in the session.
In the process of navigation, the current activity may be exited before the navigation command is able to complete. If the navigation command then throws a SequencingException, the state of the session is undefined. The current activity may have changed during this process.